package xyz.zdsoft.project_group_manage_module.service;

import org.springframework.stereotype.Service;
import xyz.zdsoft.project_group_manage_module.mapper.DeleteTeamGchMapper;

import javax.annotation.Resource;

@Service
public class DeleteTeamGchService {
    @Resource
    private DeleteTeamGchMapper deleteTeamGchMapper;
    //删除项目组
    public Integer deleteTeam(Long teamId){
        return deleteTeamGchMapper.DeleteTeam(teamId);
    }
    //删除项目组内学生
    public Integer deleteStudentInTeam(Long studentId){
        return deleteTeamGchMapper.DeleteStudentInTeam(studentId);
    }
    //删除项目组之后删除该组学生(逻辑删除)
    public void deleteTeamAndStudent(Long teamId){
        deleteTeamGchMapper.DeleteTeamAndStudent(teamId);
    }
}
